Use XGetMotionEvents to ask the last mouse motion time from X server.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 2 Sep 2013 08:45:32 +0000 (12:45 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 2 Sep 2013 08:45:32 +0000 (12:45 +0400)
commit162570a197ac1ae9b9bacb6023122ae513f60304
tree822d787b80d1b45e2934675eebfee243aaab17f0
parent511378e7c9a5c2545ba52b61fe1eb33f1420b549
Use XGetMotionEvents to ask the last mouse motion time from X server.
* xterm.c (X_MOTION_HISTORY): Default to 1.
(x_last_mouse_movement_time) [X_MOTION_HISTORY]: New function.
(x_last_mouse_movement_time) [!X_MOTION_HISTORY]: Legacy version.
(note_mouse_movement, x_scroll_bar_note_movement) [!X_MOTION_HISTORY]:
Ifdef away legacy code.
(XTmouse_position, x_scroll_bar_report_motion):
Use x_last_mouse_movement_time.
src/ChangeLog
src/xterm.c